﻿<UserControl
    x:Class="PanViewDemoApp.ScaleExample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:PanViewDemoApp"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontSize="20"
    Foreground="Black">
    <Canvas>
        <Border
            Height="120"
            Width="200"
            Background="#40FF0000">
            <Border.RenderTransform>
                <TransformGroup>
                    <CompositeTransform
                        TranslateX="30"
                        TranslateY="10"
                        ScaleX="4"
                        ScaleY="4" />
                    <CompositeTransform
                        TranslateX="30"
                        TranslateY="10"
                        ScaleX=".25"
                        ScaleY=".25" />
                </TransformGroup>
            </Border.RenderTransform>
            <TextBlock
                Foreground="Red"
                Margin="5">Sx=0.25, Sx=4</TextBlock>
        </Border>
        <Border
            Height="120"
            Width="200"
            Background="#4000FF00">
            <Border.RenderTransform>
                <TransformGroup>
                    <CompositeTransform
                        TranslateX="30"
                        TranslateY="10"
                        ScaleX=".25"
                        ScaleY=".25"/>
                    <CompositeTransform
                        TranslateX="30"
                        TranslateY="10"
                        ScaleX="4"
                        ScaleY="4"/>
                </TransformGroup>
            </Border.RenderTransform>
            <TextBlock
                Foreground="Green"
                Margin="3">Sx=4, Sx=0.25</TextBlock>
        </Border>
    </Canvas>
</UserControl>
